import request from '@/utils/request'

// 查询团队地点列表
export function listTeamPlace(query) {
  return request({
    url: '/eqxm/teamPlace/list',
    method: 'get',
    params: query
  })
}

// 查询团队地点详细
export function getTeamPlace(id) {
  return request({
    url: '/eqxm/teamPlace/' + id,
    method: 'get'
  })
}

// 新增团队地点
export function addTeamPlace(data) {
  return request({
    url: '/eqxm/teamPlace',
    method: 'post',
    data: data
  })
}

// 修改团队地点
export function updateTeamPlace(data) {
  return request({
    url: '/eqxm/teamPlace',
    method: 'put',
    data: data
  })
}

// 删除团队地点
export function delTeamPlace(id) {
  return request({
    url: '/eqxm/teamPlace/' + id,
    method: 'delete'
  })
}

// 导出团队地点
export function exportTeamPlace(query) {
  return request({
    url: '/eqxm/teamPlace/export',
    method: 'get',
    params: query
  })
}